package com.fitz.annotation;

import com.fitz.enums.RequestMethod;

import java.lang.annotation.*;

/**
 * @author gousili
 * Created  on 2020/7/6
 */
@Target({ElementType.TYPE,ElementType.METHOD})
@Documented
@Retention(RetentionPolicy.RUNTIME)
public @interface RequestMapping {

    /**
     * 请求路径
     * @return
     */
    String value() default "";

    /**
     * 请求方法
     * @return
     */
    RequestMethod method() default RequestMethod.GET;
}
